.class Lcom/waiqin365/lightapp/visit/de;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/waiqin365/compons/view/d;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/visit/de;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 6

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    :goto_0
    :pswitch_0
    return-void

    :pswitch_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/de;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;->t(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;)Lcom/waiqin365/compons/view/c;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/compons/view/c;->dismiss()V

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/de;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;->e(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;)Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/login/mainview/a;->p(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v2

    new-instance v3, Ljava/util/HashMap;

    invoke-direct {v3}, Ljava/util/HashMap;-><init>()V

    const-string/jumbo v1, ""

    const/4 v0, 0x0

    move v5, v0

    move-object v0, v1

    move v1, v5

    :goto_1
    iget-object v4, p0, Lcom/waiqin365/lightapp/visit/de;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;

    invoke-static {v4}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;->g(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;)Ljava/util/ArrayList;

    move-result-object v4

    if-eqz v4, :cond_1

    iget-object v4, p0, Lcom/waiqin365/lightapp/visit/de;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;

    invoke-static {v4}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;->g(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;)Ljava/util/ArrayList;

    move-result-object v4

    invoke-virtual {v4}, Ljava/util/ArrayList;->size()I

    move-result v4

    if-ge v1, v4, :cond_1

    iget-object v4, p0, Lcom/waiqin365/lightapp/visit/de;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;

    invoke-static {v4}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;->g(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;)Ljava/util/ArrayList;

    move-result-object v4

    invoke-virtual {v4}, Ljava/util/ArrayList;->size()I

    move-result v4

    add-int/lit8 v4, v4, -0x1

    if-eq v1, v4, :cond_0

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/de;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;->g(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/visit/b/bd;

    iget-object v0, v0, Lcom/waiqin365/lightapp/visit/b/bd;->a:Ljava/lang/String;

    invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v4, ","

    invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    :goto_2
    add-int/lit8 v1, v1, 0x1

    goto :goto_1

    :cond_0
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/de;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;->g(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/visit/b/bd;

    iget-object v0, v0, Lcom/waiqin365/lightapp/visit/b/bd;->a:Ljava/lang/String;

    invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_2

    :cond_1
    const-string/jumbo v1, "condition.planIds"

    invoke-virtual {v3, v1, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    new-instance v0, Lcom/waiqin365/lightapp/visit/a/a/t;

    invoke-direct {v0, v2, v3}, Lcom/waiqin365/lightapp/visit/a/a/t;-><init>(Ljava/lang/String;Ljava/util/HashMap;)V

    new-instance v1, Lcom/waiqin365/lightapp/visit/a/b;

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/de;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;->u(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;)Lcom/waiqin365/lightapp/visit/dq;

    move-result-object v2

    invoke-direct {v1, v2, v0}, Lcom/waiqin365/lightapp/visit/a/b;-><init>(Landroid/os/Handler;Lcom/waiqin365/lightapp/visit/a/c;)V

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/visit/a/b;->start()V

    goto/16 :goto_0

    :pswitch_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/de;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;->t(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;)Lcom/waiqin365/compons/view/c;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/compons/view/c;->dismiss()V

    goto/16 :goto_0

    :pswitch_data_0
    .packed-switch 0x7f0c0064
        :pswitch_2
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method
